#include <stdio.h>
#include <math.h>

float a, b, d, a1, b1,r3, a2, b2, r1,r2,h;
void nhap(){
    scanf("%f%f%f%f%f%f%f%f",&a,&b,&d,&a1,&b1,&a2,&b2,&h);
}
int main(){
    nhap();
    double kc;
    
    r3 = (a<b?a:b)/2;
    if(d>=h)
      if((r3<r1)||(r3<r2)) {printf("NO"); return 0;}
    if(d<h)
    {
        b1 = (b1*d)/h;
        b2 = (b2*d)/h;
    }
    r1 = (a1>b1?a1:b1);
    r2 = (a2>b2?a2:b2);
    kc = sqrt((double)((r1-a+r2)*(r1-a+r2)+(r1-b+r2)*(r1-b+r2)));
    if((kc>=(a1+a2))&&(kc>=(b2+b1))&&(h<=d)) printf("YES");
    else printf("NO");
    
    return 0;
}
